/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pobicos;

import java.util.Map;

import operators.OperatorImpl;

/**
 *
 * @author marcin
 */
public class AdaptationComputer {

    public static Double computeHappinessForSingleOperator(OperatorImpl o, Map<String,Double> map) {
        for (String s : map.keySet() ) {
            System.out.println("Key: "+ s + "and value " + map.get(s) );
        }
        Double max = 0.0;
        /**
         * Function from implementation loaded dynamically
         */
        max = o.calculateHappiness(map);

        return max;
    }
}
